package com.jiyun.controller;


import com.jiyun.mapper.DriverMapper;
import com.jiyun.mapper.HeatMapMapper;
import com.jiyun.pojo.DcDriver;
import com.jiyun.pojo.DcHeatMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/heatmap")
public class HeatMapController {

    @Autowired
    private HeatMapMapper heatMapMapper;

    //查询热力图经纬度数据
    @RequestMapping("/show")
    public List<DcHeatMap> show(){
        return heatMapMapper.selectList(null);
    }
}
